#!/bin/bash
a="abc"
b="def"

file="/c/Users/Administrator.ZX-201703241344/Desktop/shellProgram/forth_relation.sh"

if [ -r $file ]
then
   echo "file can read"
else
   echo "file can't read"
fi
if [ -w $file ]
then
   echo "file can write"
else
   echo "file can't write"
fi
if [ -x $file ]
then
   echo "file can executable"
else
   echo "file can't executable"
fi
if [ -f $file ]
then
   echo "file is simple"
else
   echo "file is special"
fi
if [ -d $file ]
then
   echo "file is directory"
else
   echo "file is't directory"
fi
if [ -s $file ]
then
   echo "file is not null"
else
   echo "file is null"
fi
if [ -e $file ]
then
   echo "file exist"
else
   echo "file don't exist"
fi